package tech.aistar.day06.homework02;

import tech.aistar.util.DateUtil;

import java.util.Date;

/**
 * 本类用来演示:
 *
 * @author: success
 * @date: 2021/3/16 9:23 上午
 */
public class TestEmp {
    public static void main(String[] args) {
        //Employee s1 = new SalariedEmployee("固定员工",new Date(),1000.0d);
        Employee s1 = new SalariedEmployee("固定员工", DateUtil.createDate(2021,2,16),1000.0d);

        System.out.println(s1.getSalary(3));

        Employee hour = new HourlyEmployee("小时工",new Date(),10,170);

        System.out.println(hour.getSalary(3));

        Employee sales = new SalesEmployee("销售",new Date(),1000,0.1);
        System.out.println(sales.getSalary(3));

        Employee base = new BasedPlusSalesEmployee("底薪销售",new Date(),1000,0.1,1000.0d);

        System.out.println(base.getSalary(3));
    }
}
